package b1.players
{
	public class EquipInfo
	{
		//唯一号
		public var id:int;
		//部位
		public var position:int;
		//在物品中的索引号
		public var objectIndex:int;
		//剩余的耐久度（-1表示无穷）
		public var durability:int; 
		
		public function EquipInfo(equipXML:XML = null)
		{
			if (equipXML != null)
			{
				this.id = parseInt(equipXML.equipId);
				this.position = parseInt(equipXML.position);
				this.objectIndex = parseInt(equipXML.objectIndex);
				this.durability = parseInt(equipXML.durability);
			}

		}
	}
}